package com.bytecub.mdm.service.impl;

import com.bytecub.common.domain.dto.request.device.DeviceBindInfoQuery;
import com.bytecub.mdm.dao.dal.DeviceBindInfoPoMapper;
import com.bytecub.mdm.dao.po.DeviceBindInfoPo;
import com.bytecub.mdm.service.IDeviceBindInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 *  * ByteCub.cn.  * Copyright (c) 2020-2020 All Rights Reserved.  *   * @author bytecub@163.com songbin
 *  * @version Id: DeviceServiceImpl.java, v 0.1 2020-12-22  Exp $$  
 */
@Service
@Slf4j
public class DeviceBindInfoServiceImpl implements IDeviceBindInfoService {

    @Autowired
    private DeviceBindInfoPoMapper deviceBindInfoPoMapper;

    @Override
    public List<DeviceBindInfoPo> queryByCondition(DeviceBindInfoQuery query) {
        DeviceBindInfoPo po = new DeviceBindInfoPo();
        po.setDeviceId(query.getDeviceId());
        return deviceBindInfoPoMapper.select(po);
    }
}
